package com.ruiysoft.controller.logistics.vo;


import java.util.ArrayList;
import java.util.List;

public class ExpressInfo {
    private String expressNO;

    List<ExpressCompany> expressCompanies;

    public void addExpressCompany(String expressCom, String expressComName){
        ExpressCompany e = new ExpressCompany();
        e.setExpressCom(expressCom);
        e.setExpressComName(expressComName);
        if(expressCompanies == null){
            expressCompanies = new ArrayList<>();
        }
        expressCompanies.add(e);
    }

    public List<ExpressCompany> getExpressCompanies() {
        return expressCompanies;
    }

    public void setExpressCompanies(List<ExpressCompany> expressCompanies) {
        this.expressCompanies = expressCompanies;
    }

    public String getExpressNO() {
        return expressNO;
    }

    public void setExpressNO(String expressNO) {
        this.expressNO = expressNO;
    }

    public static class ExpressCompany{

        private String expressCom;
        private String expressComName;

        public ExpressCompany(){

        }

        public ExpressCompany(String expressCom, String expressComName) {
            this.expressCom = expressCom;
            this.expressComName = expressComName;
        }

        public String getExpressCom() {
            return expressCom;
        }

        public void setExpressCom(String expressCom) {
            this.expressCom = expressCom;
        }

        public String getExpressComName() {
            return expressComName;
        }

        public void setExpressComName(String expressComName) {
            this.expressComName = expressComName;
        }
    }
}
